<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
if (file_exists(CMF_ROOT . "data/conf/config.php")) {
    $runtimeConfig = include CMF_ROOT . "data/conf/config.php";
} else {
    $runtimeConfig = [];
}
$configs = [
    // +----------------------------------------------------------------------
    // | 短信配置
    // +----------------------------------------------------------------------
    'code_time'   => '600',//短信有效时间 s
    // +----------------------------------------------------------------------
    // | 阿里云短信配置
    // +----------------------------------------------------------------------
    'alicode'   => [
        //key值
        'app_key'    => '',
        // 秘钥
        'app_secret' => '',
        // 签名
        'sign'       => '',
        // 模板编号
        'number'     => '',
    ],
    // +----------------------------------------------------------------------
    // | 云片短信配置
    // +----------------------------------------------------------------------
    'yunpiancode'   => [
        //key值
        'apikey'    => '',
        // 签名
        'sign'      => '',
    ],
    // +----------------------------------------------------------------------
    // | 聚合短信配置
    // +----------------------------------------------------------------------
    'juhecode'   => [
        //您申请的APPKEY
        'key'       => '',
        // 您申请的短信模板ID
        'tpl_id'    => '',
        // 设置的模板变量
        'tpl_value' => '',
    ],
     // +----------------------------------------------------------------------
    // | 短信宝配置
    // +----------------------------------------------------------------------
    'smsbaocode'   => [
        //账号
        'user'       => '',
        // 密码
        'pass'    => '',
        // 签名(可自定义)
        'sign'      => '',
    ],
    // +----------------------------------------------------------------------
    // | 创蓝短信配置
    // +----------------------------------------------------------------------
    'chuanglan'   => [
        //账号
        'account'       => '',
        // 密码
        'password'    => '',
        // 签名
        'sign'      => '',
    ],
];
return array_merge($configs, $runtimeConfig);